package com.medical.manage.service.impl;

import com.medical.manage.domain.*;
import com.medical.manage.mapper.HospitalManagementTableMapper;
import com.medical.manage.service.HospitalManagementTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HospitalManagementTableServiceImpl implements HospitalManagementTableService {
    @Autowired
    HospitalManagementTableMapper hospitalManagementTableMapper;

    @Override
    public List<HospitalManagementTable> selectHospitalManagementTableList(HospitalManagementTable hospitalManagementTable) {
        return hospitalManagementTableMapper.selectHospitalManagementTableList(hospitalManagementTable);
    }

    @Override
    public List<DepartmentManagement> departmentList(Long hospitalId) {
        return hospitalManagementTableMapper.departmentList(hospitalId);
    }

    @Override
    public List<DepartmentManagement> physicianList(Long departmentId) {

        return hospitalManagementTableMapper.physicianList(departmentId);
    }

    @Override
    public List<MedicalMedic> medicList(Long rankOfPhysician) {

        return hospitalManagementTableMapper.medicList(rankOfPhysician);
    }

    @Override
    public List<PhysicianInformation> medList(Long doctorId) {
        return hospitalManagementTableMapper.medList(doctorId);
    }

    @Override
    public List<PatientInformation> patientList(String patientName) {
        return hospitalManagementTableMapper.patientList(patientName);
    }


}
